package com.cloud.service;

import com.cloud.config.FeignConfig;
import com.cloud.tools.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @author： linJianHong
 * @dateTime： 14:28 2022/4/24
 * @Description:
 * @ClassName:
 */

@Component
@FeignClient(value = "notice-management-provider", configuration = FeignConfig.class)
public interface ManagerNoticeService {

    @PostMapping("/manager/notice/create")
    CommonResult create(Map<String,Object> map);

    @PostMapping("/manager/notice/update")
    CommonResult update(Map<String,Object> map);

    @PostMapping("/manager/notice/delete")
    CommonResult delete(Map<String,Object> map);

    @GetMapping("/manager/notice/retrieve")
    CommonResult retrieve();
}
